package com.file.system.tools.regular;

/**
 * Created by admin on 2020/4/17.
 */
public class RegularUtil {
    //验证id
    public static final String ID = "^[A-Za-z0-9]{1,32}$";
    //验证码
    public static final String CODE = "^[A-Za-z0-9]{4}$";
    //验证delete id
    public static final String DELETE_ID = "^[A-Za-z0-9,]{1,999}$";
    //验证int  char 1
    public static final String INT_CHAR_ONE = "^[0-9]{1}$";
    //验证pageIndex
    public static final String PAGE_INDEX = "^[0-9]{1,5}$";
    //验证pageSize
    public static final String PAGE_SIZE = "^[0-9]{1,5}$";
    //验证电话号码
    public static final String PHONE = "^1[3456789]\\d{9}$";
    //验证身份证号码
    public static final String CARDNO = "^[1-9][0-9]{5}([1][9][0-9]{2}|[2][0][0|1][0-9])([0][1-9]|[1][0|1|2])([0][1-9]|[1|2][0-9]|[3][0|1])[0-9]{3}([0-9]|[X])$";
    //验证年份
    public static final String YEAR = "^[0-9]{4}$";
    //验证数字
    public static final String NUMBER = "^[0-9]{1,999}$";
}
